package com.itheima.zy;

import java.util.Random;

public class Test17 {
    public static void main(String[] args) {
        System.out.print("[");
        int[] a = new int[10];
        Random r = new Random();
        for (int i = 0; i < a.length; i++) {
//            a[3] *= 10;
            a[i] = r.nextInt(10) + 1;
            if (i != a.length - 1) {
                System.out.print(a[i] + ",");
            } else {
                System.out.println(a[i] + "]");
            }
        }
//        a[3] *= 10;
//        System.out.println(a[3]);
    }
}
